home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / xml4j.jar / com / ibm / xml / xpointer / RelTermAttribute.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-08-30  |  1019 b   |  33 lines

  1. package com.ibm.xml.xpointer;
  2.  
  3. import java.io.Serializable;
  4.  
  5. public class RelTermAttribute implements Serializable {
  6.    static final long serialVersionUID = 1475177589880703773L;
  7.    String attr;
  8.    int valueType = -1;
  9.    String value;
  10.  
  11.    public RelTermAttribute(String var1, int var2, String var3) {
  12.       this.valueType = var2;
  13.       this.attr = var1;
  14.       this.value = var3;
  15.    }
  16.  
  17.    public String getName() {
  18.       return this.attr;
  19.    }
  20.  
  21.    public int getValueType() {
  22.       return this.valueType;
  23.    }
  24.  
  25.    public String getValue() {
  26.       return this.value;
  27.    }
  28.  
  29.    public String toString() {
  30.       return "," + this.attr + "," + (this.valueType == 3 ? XPointerParser.makeSkipLit(this.value) : this.value);
  31.    }
  32. }
  33.